package com.jky.stmall.front.service;

import com.jky.stmall.front.entity.Order;

import java.util.List;

public interface OrderService {
    //添加订单
    int add(Order order,Integer[] cartsId) throws Exception;

    //删除
    int remove(String id) throws  Exception;

    //修改
    int edit(Order order) throws  Exception ;

    //根据ID查询
    Order getById(String id);

    //根据用户来进行查询
    List<Order> getByUserId(Integer userId);

    //支付订单
    int pay(String id, Integer id1, String paypwd) throws Exception;
}
